'use strict';
angular.module('clientApp')
.value('flightHotelURL', 'http://127.0.0.1:8080/M2TIIL_AERO_2015')
.factory('flightHotelAPI', function($http, flightHotelURL) {
    return {
        addListHotel : function(id, idsHotel) {
        	return $http({
        		url : flightHotelURL + '/addHotelsToFlight.htm?idxFlight=' + id + '&idsHotel=' + idsHotel,
        		method : 'POST',
        		headers : {
        			'Content-Type' : 'application/json'
        		}
        	});
        }
    };
});
